package JAVACORE_TRAINING.OOPS_CONCEPTS.GENERICS.SAMPLE01;

public class Views {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // 1. Khai báo & khởi tạo TringleObject
        TringleObject objTringle = new TringleObject();
        objTringle.setSide01(3);
        objTringle.setSide02(4);
        objTringle.setSide03(5);

        // 2. Khai báo & khởi tạo
        ExecInterfaces objExec = new ExecInterfaces();

        // 3. KQ
        double result = objExec.Area(objTringle, (short) 0);

        // 1. Khai báo & khởi tạo Octagon
        OctagonObject objOctagon = new OctagonObject();
        objOctagon.setSide(2);

        // 2.
        result = objExec.Area("objOctagon", (short) 1);
    }
}
